using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tShop : BusinessBase<uint>
    {
        #region Declarations

		private string _shopname = String.Empty;
		private string _address = String.Empty;
		private string _managername = String.Empty;
		private string _tel = String.Empty;
		private string _fax = String.Empty;
		
		
		private IList<tConsumptionMaster> _tConsumptionMasters = new List<tConsumptionMaster>();
		private IList<tUser> _tUsers = new List<tUser>();
		
		#endregion

        #region Constructors

        public tShop() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_shopname);
			sb.Append(_address);
			sb.Append(_managername);
			sb.Append(_tel);
			sb.Append(_fax);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Shopname
        {
            get { return _shopname; }
			set
			{
				OnShopnameChanging();
				_shopname = value;
				OnShopnameChanged();
			}
        }
		partial void OnShopnameChanging();
		partial void OnShopnameChanged();
		
		public virtual string Address
        {
            get { return _address; }
			set
			{
				OnAddressChanging();
				_address = value;
				OnAddressChanged();
			}
        }
		partial void OnAddressChanging();
		partial void OnAddressChanged();
		
		public virtual string Managername
        {
            get { return _managername; }
			set
			{
				OnManagernameChanging();
				_managername = value;
				OnManagernameChanged();
			}
        }
		partial void OnManagernameChanging();
		partial void OnManagernameChanged();
		
		public virtual string Tel
        {
            get { return _tel; }
			set
			{
				OnTelChanging();
				_tel = value;
				OnTelChanged();
			}
        }
		partial void OnTelChanging();
		partial void OnTelChanged();
		
		public virtual string Fax
        {
            get { return _fax; }
			set
			{
				OnFaxChanging();
				_fax = value;
				OnFaxChanged();
			}
        }
		partial void OnFaxChanging();
		partial void OnFaxChanged();
		
		public virtual IList<tConsumptionMaster> TConsumptionMasters
        {
            get { return _tConsumptionMasters; }
            set
			{
				OnTConsumptionMastersChanging();
				_tConsumptionMasters = value;
				OnTConsumptionMastersChanged();
			}
        }
		partial void OnTConsumptionMastersChanging();
		partial void OnTConsumptionMastersChanged();
		
		public virtual IList<tUser> TUsers
        {
            get { return _tUsers; }
            set
			{
				OnTUsersChanging();
				_tUsers = value;
				OnTUsersChanged();
			}
        }
		partial void OnTUsersChanging();
		partial void OnTUsersChanged();
		
        #endregion
    }
}
